<?php include("../../includes/includes.php"); ?>
<?php
connect($config);
date_default_timezone_set(@date_default_timezone_get());
if ($_POST['submitType'] == "uploadSelectedTeams") {
	processSelectedTeams($config->hours, true);
}
else {
$uploadedSomething = getScores($config->hours, true);
if ($uploadedSomething) {
	informResultsUpdated($settingsOFF);
	informResultsUpdated($settingsHyro);	
}
}
mysql_close();

header( 'Location: ../admin/homePage.php' );
?>